<template>
  <div class="common-layout">
    <el-card class="box-card login-card">
      <template #header>
        <div class="card-header" style="text-align: center">
          <span>蓝狐医美crm管理系统</span>
        </div>
      </template>
      <el-form :model="form" style="padding-left: 15px;padding-right: 15px;padding-top: 10px;">
        <el-form-item label="用户名">
          <el-input placeholder="请输入用户名"/>
        </el-form-item>
        <el-form-item label="密&nbsp;&nbsp;&nbsp;码">
          <el-input type="password" placeholder="请输入密码"/>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="onSubmit" style="color:#eeeeee;width: 100%">登录</el-button>
        </el-form-item>
      </el-form>
    </el-card>
  </div>
</template>

<script>
export default {
  name: "login2"
}
</script>

<style lang="less" scoped>
@import url("../../style/reset.less");
.common-layout{
  height: 100vh;
  display: flex;
  align-items:center;/*垂直居中*/
  justify-content: center;/*水平居中*/
  background-color: #444444;
}
.el-form-item{
  margin-bottom: 20px;
}

.el-form-item .el-form-item__label{
  font-weight: bold;
}

.login-card{
  width: 320px;
  background-color: rgba(255, 255, 255, 0.8);
}
</style>